import axios from "axios";
const baseurl="http://192.168.43.128:8888";
export const request=(params)=>{
    return new Promise((resolve,reject)=>{
        axios({//解构参数 回调地狱
            ...params,
            url: baseurl+params.url,
          }).then(function (response) {
            resolve(response);
          })
          .catch(function (error) {
            reject(error);
          });
    });
}